var express = require('express');
var router = express.Router();
let userService = require("../service/userService.js")

router.get("/users",async function(req,res){
  let { page,limit } = req.query;
  let filter = null;
  let result = await userService.userList(filter,page,limit);
  console.log(result);
  res.send(result);
})

module.exports = router;
